package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderPayment;
import com.nbsaas.boot.order.api.domain.response.OrderPaymentResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 订单支付-实体对象转化成响应对象
*/

public class OrderPaymentResponseConvert  implements Converter<OrderPaymentResponse,OrderPayment> {

    @Override
    public OrderPaymentResponse convert(OrderPayment source) {
        OrderPaymentResponse  result = new  OrderPaymentResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

